package cn.bgs.pojo;


import java.util.List;

public class Student {

  private Integer sid;
  private String sname;
  private Integer age;

  //一个学生被很多老师教
  private List<Teacher> teas;

  @Override
  public String toString() {
    return "Student{" +
            "sid=" + sid +
            ", sname='" + sname + '\'' +
            ", age=" + age +
            ", teas=" + teas +
            '}';
  }

  public Integer getSid() {
    return sid;
  }

  public void setSid(Integer sid) {
    this.sid = sid;
  }

  public String getSname() {
    return sname;
  }

  public void setSname(String sname) {
    this.sname = sname;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public List<Teacher> getTeas() {
    return teas;
  }

  public void setTeas(List<Teacher> teas) {
    this.teas = teas;
  }
}